-
Posts
353 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Mats
-
@horst to the rescue again:
- 1 reply
-
- 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 reply
-
- 1
-
@Zeka It is. I'd appreciate a bug report.
-
-
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
-
@netcarver Repo is updated. Thats's my favourite shirt! Thanks for setting up the store.
-
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/!
-
Thanks @netcarver and @dab! I'll update the code with your additions @netcarver.
-
Check out http://yourdomain.com/admin/module/edit?name=InputfieldPageName tpr was faster
-
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 Soma!
-
Thanks for the report Beluga. I'll look into it.
-
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>";
-
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/
-
Change the module file from .php to .module.
-
The search seems to be using this: http://www.runningcoder.org/jquerytypeahead/
- 11 replies
-
- 2
-
Corrected code: $q = $sanitizer->text($input->get->q); if($q) { $input->whitelist('q', $q); $qs = explode(" ", $q); foreach($qs as $key => $q){ $qs[$key] = $sanitizer->selectorValue($q); } $selector = "title|body|interests*=" . implode("|", $qs) . ", limit=50"; if($user->isLoggedin()) $selector .= ", has_parent!=2"; $matches = $pages->find($selector); if($matches->count) { $content .= "<h2>Found $matches->count pages matching your query:</h2>"; $content .= renderNavPanel($matches); } else { $content = "<h2>Sorry, no results were found.</h2>"; } } else { $content = "<h2>Please enter a search term in the search box (upper right corner)</h2>"; }