-
Posts
355 -
Joined
-
Last visited
-
Days Won
2
Posts posted by Mats
-
-
@bernhard Client-side image resizing seems to be scheduled for spring 2017:
-
4
-
-
@horst to the rescue again:
-
5
-
-
I have a couple of customers on one.com (Danish company) and it's working out ok. I use mebo.se, a Swedish (pretty close to Denmark) web host, with very fast servers, great support at a low price.
-
1
-
-
@Zeka It is. I'd appreciate a bug report.
-
-
4
-
-
I don't think it's possible. Check out this SO answer: http://stackoverflow.com/questions/31861822/google-maps-how-to-show-city-or-an-area-outline/31865958#31865958
-
2
-
-
@netcarver Repo is updated.
Thats's my favourite shirt!
Thanks for setting up the store.
-
2
-
-
Hi!
Welcome to the forums!
Check this thread out for front end-editing with ckeditor:
-
Looks and works great!
Love the map on the contact page: http://eizocolour.com/contact-us/!
-
2
-
-
Thanks @netcarver and @dab!
I'll update the code with your additions @netcarver.
-
4
-
-
Check out http://yourdomain.com/admin/module/edit?name=InputfieldPageName
tpr was faster
-
1
-
-
I think you are looking for this:
$page->your_mapfield->address
-
Seems to be at database problem. I can't duplicate the issue on my set up (also on 3.0.18).
Can you add other field types without the db issue?
-
Thanks for your detailed answer! Very impressive stuff.
The vangoghroute.nl site is very nice too.
-
2
-
-
Very nice work!
Could you tell us something about the map? Are you using geojson for the routes/polylines?
-
Thanks Soma!
-
Thanks for the report Beluga. I'll look into it.
-
Glad you got it sorted, i had the same issue at some point.
-
-
Something like this?
http://ipicture.justmybit.com/demo/ipicture-cars-demo.php
https://github.com/jamietre/ImageMapster
Could be a useful fieldtype.
-
Here's the code:
function convertGeoToPixel($lat, $lon) { $mapWidth = 38; $mapHeight = 109; $mapLonLeft = 16.37007904846189; $mapLonRight = 17.151481636352514; $mapLonDelta = $mapLonRight - $mapLonLeft; $mapLatBottom = 56.1947686858922; $mapLatBottomDegree = $mapLatBottom * M_PI / 180; $x = ($lon - $mapLonLeft) * ($mapWidth / $mapLonDelta); $lat = $lat * M_PI / 180; $worldMapWidth = (($mapWidth / $mapLonDelta) * 360) / (2 * M_PI); $mapOffsetY = ($worldMapWidth / 2 * log((1 + sin($mapLatBottomDegree)) / (1 - sin($mapLatBottomDegree)))); $y = $mapHeight - (($worldMapWidth / 2 * log((1 + sin($lat)) / (1 - sin($lat)))) - $mapOffsetY); return array($x, $y); }
$pposition = convertGeoToPixel($pl->map->lat, $pl->map->lng); echo "<div class='litenkarta'><div class='punkt' style='left: {$pposition[0]}px; top: {$pposition[1]}px; '></div></div>";
-
3
-
-
Hi Rick!
I use InputfieldMapMarker for the lat/lng coordinates (used for google/mapbox maps mainly) and the code from the SO link to convert the lat/lng to x/y pixel coordinate dynamicly. I'm only using the conversion on one image but i guess you could use
$image->width $image->height
to make it work with uploaded images.
-
I'm using this code and the InputfieldMapMarker to mark positions on an image. You can see it in action here (the small blue images with a white dot): http://alltpaoland.com/
-
2
-
-
Change the module file from .php to .module.
PW 3.0.42 master + ProDevTools released
in News & Announcements
Posted
@bernhard You should check this out by @diogo : http://processwire.com/videos/copy-and-paste-photos/